﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using EstevesRecordersProject;

namespace TestProjectRecorders
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethodGerAllRecorders()
        {
            List<Recorder> rl =  Repository.GetAllRecorders();
            //Assert.IsTrue(rl.Count > 0);
        }

        [TestMethod]
        public void TestMethodGetAllEmployees()
        {
            List<Employee> el = new List<Employee>();
            el = Repository.GetAllEmployees();
            Assert.IsTrue(el.Count > 0);
        }

        [TestMethod]
        public void TestMethodGetEmployeeByID()
        {
            Employee e = new Employee();
            e = Repository.GetEmployeeById(26);
            Assert.IsTrue(e.firstName == "Andrzej");
        }
    }
}
